<div class="modal-body">
    <div class="row" id="roles">
        <div id="teacherId" th:attr="teacherId=${teacherId}" hidden></div>
        <div th:each="roleVo : ${roleVos}" class="col-xs-6 col-md-4">
            <div class="custom-control custom-checkbox">
                <input th:if="${roleVo.isAuthority=='true'}" name="rolesItem" class="custom-control-input" th:id="checkbox+${roleVo.id}" type="checkbox"  th:attr="roleVoId=${roleVo.id}" checked>
                <input th:if="${roleVo.isAuthority=='false'}" name="rolesItem" class="custom-control-input" th:id="checkbox+${roleVo.id}" type="checkbox"  th:attr="roleVoId=${roleVo.id}">
                <label class="custom-control-label" th:for="checkbox+${roleVo.id}" th:text="${roleVo.roleName}"></label>
            </div>
        </div>
    </div>
</div>
<div class="modal-footer">
    <input class="btn btn-primary" type="submit" value="提交">
    <button type="button" class="btn btn-secondary" data-dismiss="modal" id="teacherDialogClose">Close</button>
</div>